﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.OleDb;
using System.Web.Hosting;

/// <summary>
/// Summary description for DataProvider
/// </summary>
public class DataProvider
{
    private static string _strConnect = "Provider=Microsoft.Jet.OleDb.4.0;Data Source=" + HostingEnvironment.MapPath("~//DB.mdb");
    public static OleDbConnection Connect()
    {
        OleDbConnection connect = new OleDbConnection(_strConnect);
        connect.Open();
        return connect;
    }
}